/*
 * Classe destinada a conexões com relatórios
 */

package br.com.comprasPublicas.util;

import java.sql.Connection;
import java.sql.DriverManager;


/**
 *
 * @author helsen
 * @since 06/06/2011
 */
public class ConexaoReport {
    private static final String url = "jdbc:mysql://localhost:3306/compraspublicas";
    private static final String driver = "org.gjt.mm.mysql.Driver";
    private static final String login = "root";
    private static final String pwd = "123456";

    public static Connection getConnection(){
        try{
            Class.forName(driver);
            Connection con = DriverManager.getConnection(url, login, pwd);
            return con;
        }catch (Exception e) {
            e.printStackTrace();
        }
        return  null;
    }
}
